<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* 
            运算符优先级 : 
                1. () 
                2. 单目运算符   ++ -- 
                3. 算术运算符   + - * / %  (先乘除后加减)
                4. 比较运算符   > < >= <= != == ===
                5. 逻辑运算符   &&  ||  (先 && 再 ||)
                6. 三目运算符   ?   :   (了解即可)
                7. 赋值运算符   =  += -= *= /=
            
            技巧: 一般通过逻辑运算符切割。    
        */

        console.log(4 >= 6 || '人' != '黑色毛衣' && !(12 * 2 == 144) && true); //true 
       // console.log(false || true && true && true);  

        var num = 10;
        console.log(5 == num / 2 && (2 + 2 * num).toString() === '22');//true

        console.log('----------------------------------------');
        var a = 3 > 5 && 2 < 7 && 3 == 4;

        console.log(a);//false

     var b = 3 <= 4 || 3 > 1 || 3 != 2;
     console.log(b);  // true

         var c = 2 === "2";
        console.log(c);  // false

        var d = !c || b && a;
        var d = true || true && false;
         console.log(d);//true
    </script>
</body>
</html>